package com.example.qqviewspringboot.repository;

import com.example.qqviewspringboot.data.Notification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NotificationRepository extends JpaRepository<Notification, Long> {
    List<Notification> findByRecipientIdAndIsRead(Long recipientId, boolean isRead);

    List<Notification> findByRecipientIdAndType(Long recipientId, String type);
}
